class AttrName {
  final String? id; // 数据标识，对应 _id
  final String name; // 属性名

  AttrName({
    required this.id,
    required this.name,
  });

  factory AttrName.fromJson(Map<String, dynamic> json) {
    return AttrName(
      id: json['id'] as String?,
      name: json['name'] as String,
    );
  }

  Map<String, dynamic> toJson() {
    return {
      'id': id,
      'name': name,
    };
  }
}
